package com.example.contentcenter.feignclient.fallback;

import com.example.contentcenter.domain.dto.user.UserDTO;
import com.example.contentcenter.feignclient.UserCenterFeignClient;
import org.springframework.stereotype.Component;

/**
 * @ClassName: UserCenterFeignClientFallback
 * @Author: lerry_li
 * @CreateDate: 2021/06/05
 * @Description
 */
@Component
public class UserCenterFeignClientFallback implements UserCenterFeignClient {
    @Override
    public UserDTO findById(Integer id) {
        UserDTO userDTO = new UserDTO();
        userDTO.setWxNickname("一个默认用户");
        return userDTO;
    }
}
